﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ZLCMS.Data.Model;
using ZLCMS.Business.Shop.Commands.Order;
using ZLCMS.Business.Util;
using NHibernate;
using DotNet.Common.NHibernateUtil;
using ZLCMS.Web.SystemManage.Basics.ProductSKU;
using Newtonsoft.Json;
using DotNet.Common.Command;
using ZLCMS.Web.Wap.Code;
using ZLCMS.Business.Shop.Commands.Member;



namespace ZLCMS.Web.MemberUser
{
        public partial class CommentedProList : WebMemberPageBase
        {
                protected void Page_Load(object sender, EventArgs e)
                {
                        rptOrderBind();
                }

                #region 绑定订单列表 + private void rptOrderBind()
                /// <summary>
                /// 绑定订单列表
                /// </summary>
                private void rptOrderBind()
                {
                        using (ISession session = SessionFactoryHelper.CreateSession())
                        {
                                try
                                {
                                        ICommandResult<LoadCommentProductListResult> result = new LoadCommentProductListCommand().Execute(new LoadCommentProductListParameter()
                                        {
                                                MemberAccount = CurrentMemberAccount,
                                                CommentStatus = "1"
                                        });

                                        if (!result.Error)
                                        {
                                                rpt_pro.DataSource = result.Result.ProductList;
                                        }
                                        rpt_pro.DataBind();
                                }
                                catch (Exception ex)
                                {
                                        Response.Write("查询出错!" + ex.Message);
                                }
                        }
                }
                #endregion
        }
}